package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import com.zzyl.vo.nursingProjectPlanVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    //获取所有护理计划
    List<NursingPlanVo> all();

    //添加护理计划
    // @Options(useGeneratedKeys = true,keyProperty = "id")
    void add(NursingPlan nursingPlan);

    //护理项目分页条件查询
    Page<NursingPlanVo> getByPage(String name, Integer status);

    //根据id查询护理计划
    NursingPlanVo getById(Long id);

    //查询项目计划关联表对应id数据
    List<nursingProjectPlanVo> getpjp(Long id);

    //更新护理计划基本信息 and 启用禁用护理计划
    void update(NursingPlan nursingPlan);

    //删除护理计划
    void deleteById(Long id);


    //启用禁用护理计划



    //删除需要更新的护理计划
    // void delete(NursingPlanDto nursingPlanDto);
}
